﻿/*
* 作者:haojielyb
* 邮箱:haojielyb@qq.com
*/

namespace OTHMqttClient.model
{
    public class topics
    {
        //public const string heartbeat = "mqtt/face/heartbeat";
        public const string Othmqttbeat = "othmqtt/basic";
        //public const string basic = "mqtt/face/basic"; 

        public const string WechatMessage = "lxb/wechat/message";

        /// <summary>
        /// 命令下发话题
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        public static string GetOTHface(string id)
        {
            return $"othmqtt/othface/{id}";
        }

        /// <summary>
        /// 认证识别结果
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string getRec(string id)
        {
            return $"mqtt/face/{id}/Rec";
        }

        /// <summary>
        /// 操作结果
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string getAck(string id)
        {
            return $"mqtt/face/{id}/Ack";
        }

        /// <summary>
        /// 陌生人
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string getSnap(string id)
        {
            return $"mqtt/face/{id}/Snap";
        }

        /// <summary>
        /// 刷卡
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string getCard(string id)
        {
            return $"mqtt/face/{id}/Card";
        }

        /// <summary>
        /// 刷身份证
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string getIDCard(string id)
        {
            return $"mqtt/face/{id}/IDCard";
        }

        public static string getQRCard(string id)
        {
            return $"mqtt/face/{id}/QRCard";
        }
    }
}